package com.fengba.nanzhi.tabbar04.wz;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.Toast;

import com.fengba.nanzhi.fengba.R;

public class ThirdpartyActivity extends AppCompatActivity {

    private Button MyWallet,bmjf,xyjd,kpsq;
    private ImageButton fh;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.wz_activity_thirdparty);
        //我的钱包
        MyWallet = findViewById(R.id.MyWallet);
        MyWallet.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(ThirdpartyActivity.this,MyWalletActivity.class);
                startActivity(intent);
            }
        });
        //便民服务
        bmjf = findViewById(R.id.bmjf);
        bmjf.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(ThirdpartyActivity.this, "该功能尚未开通", Toast.LENGTH_SHORT).show();
            }
        });
        //信用贷款
        xyjd = findViewById(R.id.xyjd);
        xyjd.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(ThirdpartyActivity.this, "该功能尚未开通", Toast.LENGTH_SHORT).show();
            }
        });
        //卡片申请
        kpsq = findViewById(R.id.kpsq);
        kpsq.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(ThirdpartyActivity.this, "该功能尚未开通", Toast.LENGTH_SHORT).show();
            }
        });
        //返回
        fh = findViewById(R.id.ThirPartyfh);
        fh.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }
}
